﻿@{
    //ViewBag.Title = "库存管理";
    Layout = "~/Views/Shared/_LayoutList.cshtml";
    string title = ViewBag.Title;
}
@(       
 Html.nbGridFor<Storage>(s =>
 {
     s.ShowCheckBox(false);
     s.SelectedOnClick(false);
     s.Action(@Url.Action("List", new { Type = ViewBag.Type }));
     s.Columns(c =>
     {
         c.Bind(e => e.Id).IsKey();
         c.BindEnum(e => e.Category, "MaterialCategory").Width(50).AsSearch();
         c.Bind(e => e.Code).Width(60).AsQuery().AsSearch();
         c.Bind(e => e.Name).Width(100).AsQuery().Align(GridAlign.Left).AsSearch();
         c.BindEnum(e => e.Specification, "MaterialSpec").Width(50).AsSearch();
         c.Bind(e => e.CurrentPrice).Width(50).Align(GridAlign.Right);
         c.BindEnum(e => e.Unit, "MaterialUnit").Width(50);
         c.Bind(e => e.ActualStorage).Width(60).Align(GridAlign.Right);
     });
 }))
